<?php
class PlanModel extends Orm_Base{
    public $table = 'plan';
    public $field = array(
        'id' => array('type' => "int(11) unsigned",'comment' => ''),
        'sid' => array('type' => "int(11) unsigned",'comment' => '关联老年人ID'),
        'pi_id' => array('type' => "int(11) unsigned",'comment' => '关联计划详情表ID'),
        'plan_type' => array('type' => "tinyint(1)",'comment' => '提醒类型(1.铃声、2.震动)'),
        'event_type' => array('type' => "tinyint(2)",'comment' => '事件类型'),
        'sw_id' => array('type' => "int(11)",'comment' => '关联护工ID'),
        'status' => array('type' => "tinyint(1)",'comment' => '是否提醒'),
        'startdate' => array('type' => "int(10)",'comment' => '起始日期'),
        'enddate' => array('type' => "int(10)",'comment' => '结束日期'),
        'starttime' => array('type' => "int(11)",'comment' => ''),
        'endtime' => array('type' => "int(11)",'comment' => ''),
        'respond_time' => array('type' => "time",'comment' => '响应时间点'),
        'description' => array('type' => "varchar(255)",'comment' => '事件描述'),
        'remarks' => array('type' => "varchar(255)",'comment' => '备注'),
        'at' => array('type' => "tinyint(1)",'comment' => '时间段'),
        'is_show' => array('type' => "tinyint(1)",'comment' => '是否显示(1.是、2.否)'),
        'is_delete' => array('type' => "tinyint(1)",'comment' => '是否删除(1.是、2.否)'),
        'created' => array('type' => "int(11)",'comment' => ''),
        'updated' => array('type' => "int(11)",'comment' => ''),
    );
    public $pk = 'id';
}
?>
